<template>
  <iframe :src="cp_src" frameborder="0" class="bg-blue-50 w-full h-full"></iframe>
</template>

<script setup>
import { ref, defineProps, computed, defineEmits, onMounted } from "vue";
import { useRoute, useRouter } from "vue-router";

const route = useRoute();

const webSrc = ref("");
onMounted(() => {
  const { src } = route.query;
  webSrc.value = src;
});

const cp_src = computed(() => `https://view.xdocin.com/xdoc?_xdoc=${webSrc.value}`);
</script>

<style lang="less" scoped></style>
.value
